<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/flexible.js"></script>
    <script src="../js/echarts.min.js"></script>
    <style>
        .box {
            width: 7.5rem;
            height: 5rem;
        }
    </style>
</head>

<body>
    <div class="box" id='box'></div>
    <script>
        const MyEcharts = echarts.init(document.getElementById('box'))
        const option = {
            dataZoom: [{
                type: 'slider', //inside鼠标滚动缩放
                xAxisIndex: 0
            }, {
                type: 'slider',
                yAxisIndex: 0
            }],
            xAxis: { //直角系中的x轴
                type: 'category', //类目轴
                data: ['用户1', '用户2', '用户2']
            },
            yAxis: { //直角系中的y轴
                type: 'value' //数据轴
            },
            series: [{
                data: [50, 100, 150],
                type: 'bar',
                name: '语文'
            }]
        };
        MyEcharts.setOption(option)
    </script>

</body>

</html>

</html>